<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.9.1.min.js"></script>
<!-- buttons -->
<link rel="stylesheet" href="<%=basePath%>css/buttons.css" />
<script type="text/javascript" src="<%=basePath%>js/buttons.js"></script>
<!-- buttons end  -->
<!-- bootstrap -->
<link rel="stylesheet" href="<%=basePath%>css/bootstrap.css" />
<script type="text/javascript"
	src="<%=basePath%>js/bootstrap/bootstrap.js"></script>
<!-- bootstrap end  -->
<meta http-equiv="Content-Type" content="text/html" ; charset="UTF-8">
	<title></title>
</head>
<script type="text/javascript">
$(document).ready(function(){
	$("#reg").click(function(){
		location.href = "<%=basePath%>reg.jsp";
	});
	$("#updateUser").click(function(){
		location.href = "<%=basePath %>userInfo/selById";
	});
	$("#myticket").click(function(){
		location.href = "<%=basePath%>myticket.jsp";
	});
	$("#seltrain").click(function(){
		location.href = "<%=basePath%>badbooking/selBadrecord";
	});
	$("#gp").click(function(){
		location.href = "<%=basePath%>badbooking/selBadrecord";
	});
	$("#train").click(function(){
		location.href = "<%=basePath%>train.jsp";
	});
	$("#trainUpdate").click(function(){
		location.href = "<%=basePath%>badbooking/selBadrecord";
	});
	$("#personalcredit").click(function(){
		location.href = "<%=basePath%>personalcredit.jsp";
	});
	$("#logoff").click(function(){
		location.href = "<%=basePath%>userInfo/logoff";
	});
	$("#tsParam").click(function(){
		location.href = "<%=basePath%>paramininfo/sel";
	});
});
</script>
<body>
	<CENTER>
		<form action="<%=basePath%>userInfo/login" method="post">
			<TABLE border="0">
				<tr align="center">
					<td colspan="3">
						<%-- <img src="<%=basePath%>/img/index.jpg"  style="width: 900px; height: 120px;"/> --%>
					</td>
				</tr>
				<TR>
					<TD colspan="3"></br> <c:if
							test="${sessionScope.user.fusername == null}">
							<table border="0" cellpadding="0" cellspacing="0" width="600">
								<tr>
									<td>&nbsp;&nbsp;用户名：</td>
									<td><input type="text" id="username" name="username"
										class="form-control" style="width: 200px; height: 30px;"></td>
									<td>&nbsp;&nbsp;密码：</td>
									<td><input type="password" id="password" name="password"
										class="form-control" style="width: 200px; height: 30px;"></td>
									<td><input type="submit" value="登录" id="login"
										class="button button-pill button-primary"
										style="width: 80px; height: 30px;"></td>
									<font color="red" size="2">${result }</font>
								</tr>
							</table>
						</c:if> <c:if test="${sessionScope.user.fusername != null}">
							<table border="0" cellpadding="0" cellspacing="0" width="600">
								<tr>
									<td align="left">&nbsp;&nbsp;${sessionScope.user.fusername }，您好&nbsp;&nbsp;
										&nbsp;&nbsp;<input type="button" value="注销" id="logoff"
										class="button button-pill button-primary"
										style="width: 70px; height: 30px; font-size: 10px;" />
									</td>
								</tr>
							</table>
						</c:if> <br /></TD>
				</TR>
				<TR>
					<td valign="top">
						<table width="150">
							<c:if test="${sessionScope.user.fusername != 'admin'}">
								<tr>
									<td><input type="button"
										class="button button-pill button-primary" value=" 注  册 "
										style="width: 140px; height: 40px;" id="reg" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<tr>
									<td><input type="button"
										class="button button-pill button-primary" value="我的信息"
										style="width: 140px; height: 40px;" id="updateUser" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<tr>
									<td><input type="button"
										class="button button-pill button-primary"
										value="充&nbsp;&nbsp;值" style="width: 140px; height: 40px;"
										id="recharge" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<tr>
									<td><input type="button"
										class="button button-pill button-primary" value="我的车票"
										style="width: 140px; height: 40px;" id="myticket" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<tr>
									<td><input type="button"
										class="button button-pill button-primary" value="余票查询"
										style="width: 140px; height: 40px;" id="seltrain" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<tr>
									<td><input type="button"
										class="button button-pill button-primary" value=" 购  票 "
										style="width: 140px; height: 40px;" id="gp" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
							</c:if>
							<c:if test="${sessionScope.user.fusername == 'admin'}">
								<tr>
									<td><input type="button"
										class="button button-pill button-primary" value="车次信息上传"
										style="width: 140px; height: 40px;" id="train" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<!-- <tr>
									<td><input type="button"
										class="button button-pill button-primary" value="车次信息修改"
										style="width: 140px; height: 40px;" id="trainUpdate" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr> -->
								<tr>
									<td><input type="button"
										class="button button-pill button-primary" value="信用信息维护"
										style="width: 140px; height: 40px;" id="personalcredit" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<tr>
									<td><input type="button"
										class="button button-pill button-primary" value="特殊参数配置"
										style="width: 140px; height: 40px;" id="tsParam" /></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
							</c:if>					
						</table>
					</td>
					<td valign="top">
						<TABLE width="600">
							<tr>
								<td>
									<ul class="nav nav-tabs">
										<li class="active"><a href="#home" data-toggle="tab">最新动态</a></li>
										<li><a href="#profile" data-toggle="tab">网上购票常见问题</a></li>
										<li><a href="#messages" data-toggle="tab">铁路常识</a></li>
									</ul>
									<div class="tab-content">
										<div class="tab-pane active" id="home">
											<a class="k" target="_blank" href="">关于2014年上半年京沪、京广高铁部分G字头动车组列车商务、特等、一等座实施特惠票价的公告</a><br />
											<a class="k" target="_blank" href="">铁路互联网购票身份核验须知</a><br />
											<a class="k" target="_blank" href="">广铁集团公司关于7月4日至7月20日期间临时加开部分旅客列车的公告</a><br />
											<a class="k" target="_blank" href="">上海铁路局关于2014年暑期旅客运输工作的公告</a><br />
											<a class="k" target="_blank" href="">昆明铁路局关于新开2对直通旅客列车的公告</a><br />
											<a class="k" target="_blank" href="">济南铁路局关于开行日照—上海、烟台—泰山等临客的公告</a><br />
											<a class="k" target="_blank" href="">青藏铁路公司关于6月22日至6月27日西宁西至拉萨间增开K9811/2次旅客列车的公告</a><br />
											<a class="k" target="_blank" href="">关于乌鲁木齐铁路局部分回送客车底列车在乌鲁木齐至乌西间不办理客运业务的通知</a><br />
											<a class="k" target="_blank" href="">青藏铁路公司关于西宁西至拉萨间K9811/2次旅客列车改为每日开行的公告</a><br />
											<a class="k" target="_blank" href="">南昌铁路局关于实行2014年“7．1”调整列车运行图的公告</a><br />
										</div>
										<div class="tab-pane" id="profile">
											<a class="k" target="_blank"
												href="./kyfw/question/201201/t20120103_695.html">
												旅客在12306网站购票成功，在窗口取票时为何系统提示错误？</a><br /> <a class="k"
												target="_blank"
												href="./kyfw/question/201206/t20120621_704.html">在互联网购买了儿童票，如何在售票窗口换取纸质车票？</a><br />
											<a class="k" target="_blank"
												href="./kyfw/question/201112/t20111220_686.html">注册用户时，系统提示身份信息重复怎么办？</a><br />
											<a class="k" target="_blank"
												href="./kyfw/question/201205/t20120509_702.html">购买实名制车票后丢失了怎么办？</a><br />
											<a class="k" target="_blank"
												href="./kyfw/question/201204/t20120427_701.html">网上购票由于安全警告无法登录问题说明</a><br />
											<a class="k" target="_blank"
												href="./kyfw/question/201202/t20120224_700.html">我在网站购票时，扣款成功但购票不成功怎么办？</a><br />
											<a class="k" target="_blank"
												href="./kyfw/question/201202/t20120224_699.html">我在网站购票时不小心重复支付了，重复扣的票款没有及时到帐，怎么办？</a><br />
											<a class="k" target="_blank"
												href="./kyfw/question/201202/t20120224_698.html">我在网站购票后改签时，扣款成功但改签不成功，或者不小心重复支付了，款项未到帐怎么办？</a><br />
											<a class="k" target="_blank"
												href="./kyfw/question/201202/t20120224_697.html">我在网站购票又退票后，为什么钱没有及时退还给我的银行卡?</a><br />
											<a class="k" target="_blank"
												href="./kyfw/question/201202/t20120224_696.html">我在网站购票又在车站售票窗口改签或退票后，为什么钱没有及时退还给我的银行卡?</a><br />
										</div>
										<div class="tab-pane" id="messages">
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1904.html">购买实名制车票时，可以使用哪些身份证件？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1905.html">实行车票实名制时，如何购票？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1903.html">什么是异地票、联程票和往返票？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1902.html">旅客购票时可以用银行卡付款吗？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1900.html">电话订票时，可以使用哪些身份证件？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1901.html">旅客在售票窗口购票时应当注意什么？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1899.html">互联网购票时，可以使用哪些身份证件？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1897.html">目前哪些车站可以使用二代居民身份证直接检票乘车？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1898.html">在互联网购票后，哪些情况需要换取纸质车票？</a><br />
											<a class="k" target="_blank"
												href="./tlcs/201112/t20111221_1896.html">在互联网购票后，如何换取纸质车票？</a>
										</div>
									</div>
								</td>
							</tr>
						</TABLE>
					</td>
					<td valign="top">
						<TABLE>
							<tr>
								<td>
									<ul class="nav nav-tabs">
										<li class="active"><a href="#home" data-toggle="tab">网站导航</a></li>
									</ul>
									<div class="tab-content">
										<div class="tab-pane active" id="home">
											<a href="http://www.gov.cn" target="_blank">中央政府门户网站</a><br />
											<a href="http://www.fmprc.gov.cn" target="_blank">外交部</a><br />
											<a href="http://www.sdpc.gov.cn" target="_blank">发展改革委</a><br />
											<a href="http://www.moe.edu.cn" target="_blank">教育部</a><br />
											<a href="http://www.most.gov.cn" target="_blank">科技部</a><br />
											<a href="http://www.seac.gov.cn" target="_blank">国家民委</a><br />
											<a href="http://www.mps.gov.cn" target="_blank">公安部</a><br />
											<a href="http://www.mos.gov.cn" target="_blank">监察部</a><br />
											<a href="http://www.mca.gov.cn" target="_blank">民政部</a><br />
											<a href="http://www.legalinfo.gov.cn" target="_blank">司法部</a><br />
											<a href="http://www.mof.gov.cn" target="_blank">财政部</a><br />
										</div>
									</div>
								</td>
							</tr>
						</TABLE>
					</td>
				</TR>
				<tr>
					<td height="10" colspan="3"></td>
				</tr>
				<tr>
					<td height="5" bgcolor="#0066CC	" colspan="3"></td>
				</tr>
				<tr>
					<td colspan="3" align="center">
						联系我们&nbsp;&nbsp;|&nbsp;&nbsp;网站声明<br />版权所有 © 2014-2015 铁道部信息技术中心<br />京ICP备10001111号
					</td>
				</tr>
			</TABLE>
		</form>
	</CENTER>
</body>
</html>